#include "EmyAnimNotify.h"
#include "EmyCharacter.h"

void UEmyAnimNotify::Notify(USkeletalMeshComponent* MeshComp, UAnimSequenceBase* Animation)
{
    Super::Notify(MeshComp, Animation);

    if (NotifyType==1) {
        if (AEmyCharacter* EmyChar = Cast<AEmyCharacter>(MeshComp->GetOwner()))
        {
            EmyChar->StartChasing();
        }
    }
}